#include"process.h"
#include<string.h>
const int N=101;
#define  type1 '#'
#define  type3 '>'
void process(){
int num=0;
char bar[N];
memset(bar,'\0',sizeof bar);
const char type2[5]="|/-\\";
while(num<N)
{
  printf("[%-100s][%-2d%%][%c]\r",bar,num,type2[num%4]);
fflush(stdout);
  if(num==N-1)
   break;
  bar[num]=type1;
  num++;
  if(num<N-1)
bar[num]=type3;
  usleep(100000);

}
printf("\n");
}
